import request from '@/utils/request'

export const artGetChannelsService = () => request.get('/my/cate/list')
export const artEditChannelsService = (data) =>
  request.put('/my/cate/info', data)
export const artAddChannelsService = (cate_name, cate_alias) =>
  request.post('/my/cate/add', { cate_name, cate_alias })
export const artDelChannelService = (id) =>
  request.delete(`/cate/${id}`)
export const artEditService = (data) => request.put('my/article/info', data)
export const artGetDetailService = (id) =>
  request.get('my/article/info', { params: { id } })
export const artGetListService = (params) =>
  request.get('/my/article/list', { params })
export const artPublishService = (data) => request.post('/my/article/add', data)
export const artDelService = (id) =>
  request.delete('my/article/info', { params: { id } })
